my_old_list = [1,2,3,4,5,6,7,8,9,10]
my_new_list=[]
for key in my_old_list:
    if key % 2 == 0:
        my_new_list.append(key)
print(my_new_list)
squares = [x**2 for x in my_new_list]
print(squares)